<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no"/>
		<title>选项列表</title>
		<link rel="stylesheet" type="text/css" href="../../css/api.css" />
		<link rel="stylesheet" type="text/css" href="../../css/common.css" />
		<link rel="stylesheet" type="text/css" href="../../script/easydialog/easydialog.css" />
		<link rel="stylesheet" href="../../css/lightForBillMenu.css" class="light-style">
		<link rel="stylesheet" href="../../css/darkForBillMenu.css" class="dark-style" disabled>
		<link rel="stylesheet" type="text/css" href="../../css/bill-list.css" />
		<link rel="stylesheet" type="text/css" href="../../css/query-list.css"/>
		<link rel="stylesheet" type="text/css" href="css/billMenu.css" />
		<link rel="stylesheet" type="text/css" href="../../css/aui-flex.css" />
		<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
		<style>
			html, body, #wrap, #header {
				background: transparent;
			}
			#header {
				height: 58px;
			}
			.noborder {
				border: none !important;
			}
		</style>
	</head>
	<body>
		
	<div id="SignDiv51" class="winDiv" style="display: none">
			<div id="spanTitleId1" class="otherDivHeader"></div>
			<div  id="transferLabelDivId1" class="selectLabelDiv" style="margin-top: 10px;" >
				<div id="user_name1" style="font-size:16px;color:#adadad;">
					接收人
				</div>
			</div>
			
			<div id="contactTelSpanId1"class="aui-flex-col" data-type="text" style="margin-top: 10px;margin-right: 10px;">
				<div class="aui-flex-item-9 " style="padding-right: 10px">
					<img id="verifyImg" style="width:140px;height:44px;display:inline-block;float:left;border:none;padding-left:15px"  onclick="refreshVerify()"/>
				</div>
				<div class="aui-flex-item-3 " style="height: 40px;line-height: 40px; text-align: right;color:#adadad;">
					<input id="verifyCode" name="verifyCode"  maxlength="6" type="text" name="verifyCode" autocorrect="off" placeholder="验证码" style="width:136px;height:44px;float:right;padding-left:15px">
				</div>
			<div  id="iftrueof" class="aui-flex-col" style="margin-top: 10px;margin-left: 110px" >
				<div id="user_na" style="font-size:16px;color:#822;">
					
				</div>
			</div>
			
			<div class="winButtonDiv">
				<button style="width: 290px;margin-left:5px;
	height:40px;
	color:#FFFFFF;
	text-align: center;
	font-size: 20px;
	border-radius:5px;
  	background-color:#DB4537;
  	margin-top:5px;    
    margin-right:5px;"  onclick="checkFunc()">
					确定
				</button>
			</div>
		</div>	
				
	</body>
	<script src="../../script/jquery-1.11.3.min.js"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/doT.min.js"></script>
	<script type="text/javascript" src="../../script/theme.js"></script>
	<script type="text/javascript" src="../../script/easydialog/easydialog.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/debug.js"></script>
	<script type="text/javascript" src="../../script/config.js"></script>
	<script type="text/javascript" src="../../script/client.api.js"></script>
	<script type="text/javascript" src="../../script/aui-alert.js"></script>
	<script type="text/javascript" >
	apiready = function() {
		$('#verifyImg').attr('src', 'http://101.227.240.166:58090/itower/jf/authImg/auth?key=' + api.pageParam.code);
		
		$api.byId('SignDiv51').style.display = "";
		$api.byId('spanTitleId1').innerHTML = "再次验证";
		var user = $api.getStorage('user');
		$api.byId('user_name1').innerHTML = "操作人：" + user.username;
//		$api.byId('user_na').innerHTML = "操作人成功";
			isopen = true;
			easyDialog.open({
				container : 'SignDiv51',
				fixed : false
			});
	}
	
	function checkFunc(){
	
		var user = $api.getStorage('user');
		if($api.byId('verifyCode').value.toLocaleLowerCase() == api.pageParam.code.toLocaleLowerCase()){
//			$api.byId('SignDiv').style.display = "none";
			easyDialog.close({
					container : 'SignDiv51',
					fixed : false
				});
				$api.setStorage("nverifycode", '');
				$client.userValidate({
							validate :  api.pageParam.code.toLocaleLowerCase(),
							userid : user.userid
						}, function(ret, err) {
//							alert("1");
//							if(ret){
//								alert("2");
//								 api.toast({
//								    msg: '验证成功',
//								    duration: 2000,
//								    location: 'middle'
//								});
//							}else{
//								
//							}
						});
				api.closeFrame({
			    name: 'verifyCode_frm'
				});
				showToast("验证成功!");
		}else{
			$api.byId('user_na').innerHTML = "验证码错误";
		}
	
	}
	
	</script>
</html>
